<?php
  global $ML_CATELOG;
?>
<div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="brand" href="#">LOGO</a>
          <div class="nav-collapse">
            <ul class="nav">
              <li><a href="/">首页</a></li>
              <li<?php if(substr($page_id , 0 , 5)=='guang'){echo ' class="active"';} ?>><a href="/guang">逛宝贝</a></li>
            </ul>
          </div>
          <!--/.nav-collapse -->
          <div style="float:right">
            <?php if($this->__visitor['status']==ML_USERSTATUS_THIRD||$this->__visitor['online']==ML_USER_ONLINE&&$this->__visitor['verifyE']==ML_VERIFYED){?>
            <ul class="nav nav-pills">
              <li class="dropdown"><a href="#" class="dropdown-toggle" style="border: 0px;" id="nav_publink"><i class="icon-pencil icon-white"></i>发布</a></li>
              <li class="dropdown" id="navMenuMsg">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#navMenuMsg" style="border: 0px;"><i class="icon-envelope icon-white"></i>消息<span id="nav_msgNtc"></span><b class="caret"></b></a>
                <ul class="dropdown-menu">
                  <li><a href="/home/fans/u/<?php echo $this->__visitor['uid']; ?>">查看粉丝</a></li>
                  <li><a href="/message/comment">查看评论</a></li>
                  
                </ul>
              </li>
              <li class="dropdown" id="navMenuUser">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#navMenuUser" style="border: 0px;word-break: keep-all" id="navMenuUserA"><img src="<?php echo ml_tool_picid::uid2portrait($aVisitor['uid']  ,'atm'); ?>" style="width:17px" title="<?php echo $aVisitor['nickname']; ?>" /><?php echo $aVisitor['nickname']; ?><b class="caret"></b></a>
                <ul class="dropdown-menu">
                  <li><a href="<?php echo ML_PAGE_SELFINDEX?>">我的首页</a></li>
                  <li><a href="/home/share/u/<?php echo $this->__visitor['uid']; ?>">我的分享</a></li>
                  <li><a href="/home/follow/u/<?php echo $this->__visitor['uid']; ?>">我的关注</a></li>
                  <li class="divider"></li>
                  <li><a href="/settings/index">设置</a></li>
                  <li class="divider"></li>
                  <li><a href="/riaapi/aj_logout.php">退出</a></li>
                </ul>
              </li>
            </ul>
            <?php }else{ ?>
            <ul class="nav nav-pills">
              <li class="dropdown" id="navLogin">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#navLogin" style="border: 0px;word-break: keep-all" id="">登录<b class="caret"></b></a>
                <ul class="dropdown-menu">
                  <li><a href="/page/auth.php?type=sina" class="dropdown-toggle" style="border: 0px;"><img src="http://cdn1.iconfinder.com/data/icons/silk2/page_white_edit.png" style="width:17px;"/>微博登录</a></li>
                  <li><a href="/page/auth.php?type=taobao" class="dropdown-toggle" style="border: 0px;"><img src="http://cdn1.iconfinder.com/data/icons/silk2/page_white_edit.png" style="width:17px;"/>淘宝登录</a></li>
                </ul>
              </li>

              
            </ul>
            <?php } ?>
          </div>
        </div>
      </div>  
    </div>